package com.coolingme.calculate.expression;

import com.coolingme.calculate.IMathExpression;

/**
 * 数字表达式
 *
 * @author wangyue
 * @date 2020-09-29 22:49
 */
public class NumberExpression implements IMathExpression {

    private int value;

    public NumberExpression(int value) {
        this.value = value;
    }

    @Override
    public int interpret() {
        return this.value;
    }
}
